package com.nginxmanager.domain;

/**
 * Created by Administrator on 2018-01-06.
 */
    public class Proxy {
    private String ip;//IP地址
    private String port;//端口号
    private String weight;//权重
    private boolean state;//状态
    private String max_fails;//失败请求数
    private String  fail_timeout;//宕机认定时间

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getMax_fails() {
        return max_fails;
    }

    public void setMax_fails(String max_fails) {
        this.max_fails = max_fails;
    }

    public String getFail_timeout() {
        return fail_timeout;
    }

    public void setFail_timeout(String fail_timeout) {
        this.fail_timeout = fail_timeout;
    }

    @Override
    public String toString() {
        return "Proxy{" +
                "ip='" + ip + '\'' +
                ", port='" + port + '\'' +
                ", weight='" + weight + '\'' +
                ", state=" + state +
                ", max_fails='" + max_fails + '\'' +
                ", fail_timeout='" + fail_timeout + '\'' +
                '}';
    }
}
